package com.beiding.jsonanalyzer.flow;

/**
 * 自行执行任务
 * @author 丁常磊
 * @date 2022/5/12 12:51
 */

public class SelfExecuteTaskSlot implements TaskSlot{

    private static SelfExecuteTaskSlot INS = new SelfExecuteTaskSlot();

    public static  SelfExecuteTaskSlot getInstance() {
        return INS;
    }

    @Override
    public void commit(Runnable task) {
        task.run();
    }
}
